home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / bash / bash-110 / mintve~1 / bash110s.zoo / bash-1.10 / builtins / Makefile.MiNT < prev    next >
Encoding:
Makefile  |  1991-11-09  |  1.5 KB  |  52 lines

  1. # Makefile for builtins lib
  2. # Hacked together for MiNT library by Dave Gymer
  3.  
  4. CPPFLAGS = -I.. -I. -DHAVE_RESOURCE -DMiNT
  5.  
  6. .def.o:
  7.     rm -f $@
  8.     ./mkbuiltins $(DIRECTDEFINE) $*.def
  9.     $(CC) -c $(CFLAGS) $(CPPFLAGS) $*.c
  10.     rm -f $*.c
  11.  
  12. .def.c:
  13.     rm -f $@
  14.     ./mkbuiltins $(DIRECTDEFINE) $*.def
  15.  
  16. DEFS =  alias.def bind.def break.def builtin.def cd.def colon.def \
  17.     command.def declare.def echo.def enable.def eval.def \
  18.     exec.def exit.def fc.def fg_bg.def hash.def help.def history.def \
  19.     jobs.def kill.def let.def read.def return.def set.def setattr.def \
  20.     shift.def source.def suspend.def test.def times.def trap.def \
  21.     type.def ulimit.def umask.def wait.def getopts.def reserved.def
  22.  
  23. OFILES = alias.o bind.o break.o builtin.o cd.o colon.o command.o \
  24.     common.o declare.o echo.o enable.o eval.o exec.o exit.o \
  25.     fc.o fg_bg.o hash.o help.o history.o jobs.o kill.o \
  26.     let.o read.o return.o set.o setattr.o shift.o source.o \
  27.     suspend.o test.o times.o trap.o type.o ulimit.o umask.o \
  28.     wait.o getopts.o getopt.o builtins.o
  29.  
  30. all: mkbuiltins builtins.a
  31.  
  32. builtins.a: mkbuiltins $(OFILES)
  33.     ar cs $@ $(OFILES)
  34.  
  35. builtext.h builtins.c: mkbuiltins $(DEFS)
  36.     rm -f builtext.h builtins.c
  37.     ./mkbuiltins -externfile builtext.h -structfile builtins.c \
  38.         -noproduction $(DEFS)
  39.  
  40. mkbuiltins: mkbuiltins.c
  41.     $(CC) $(CFLAGS) -o $@ mkbuiltins.c
  42.     chmod +x mkbuiltins
  43.  
  44. ulimit.o: ulimit.def pipesize.h
  45.  
  46. pipesize.h:    psize.aux
  47.     $(SHELL) ./psize.sh > pipesize.h
  48.  
  49. psize.aux:    psize.c
  50.     $(CC) $(CFLAGS) -o $@ psize.c
  51.     chmod +x psize.aux
  52.